//
//  TitleCollectionReusableView.m
//  TeamInformatization
//
//  Created by bigger on 2019/3/31.
//  Copyright © 2019年 SPIC. All rights reserved.
//

#import "TitleCollectionReusableView.h"

@interface TitleCollectionReusableView ()

@property (nonatomic, strong) SimpleLabel *sectionTitleLabel;

@end


@implementation TitleCollectionReusableView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = kSetRGBColor(241, 241, 241, 1);
        [self creatCellView];
    }
    
    return self;
}

- (void)creatCellView
{
    self.sectionTitleLabel = [SimpleLabel initWithText:@"" TextColor:kTitleTextColor TextFont:[UIFont boldSystemFontOfSize:14] TextAlignment:NSTextAlignmentLeft];
    _sectionTitleLabel.backgroundColor = [UIColor whiteColor];
    [self addSubview:_sectionTitleLabel];
    [_sectionTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(0);
        make.top.mas_equalTo(10 * kScaleWidth);
    }];
    
}

- (void)setReusableCellTitle:(NSString *)title
{
    _sectionTitleLabel.text = [NSString stringWithFormat:@"  %@", title];
}

@end
